<?php /*a:2:{s:71:"D:\apps\phpstudy_pro\WWW\shop28.op\app\admin\view\order\order_list.html";i:1630483535;s:66:"D:\apps\phpstudy_pro\WWW\shop28.op\app\admin\view\public\head.html";i:1630479469;}*/ ?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="/static/admin/css/pintuer.css">
    <link rel="stylesheet" href="/static/admin/css/admin.css">
    <script src="/static/admin/js/jquery.js"></script>
    <script src="/static/admin/js/pintuer.js"></script>
</head>
<body>
  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 订单列表</strong> <a href="" style="float:right; display:none;">添加字段</a></div>
    <div class="padding border-bottom">
    	<form id="F" action="" method="get">
      <ul class="search" style="padding-left:10px;">
        <li>搜索：</li>        
        <li>
            <?php if(is_array($status) || $status instanceof \think\Collection || $status instanceof \think\Paginator): $i = 0; $__LIST__ = $status;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                <?php echo htmlentities($v['order_status']); ?><input type="checkbox" <?php if(isset($order_status) && in_array($v['status_id'],$order_status)): ?>checked<?php endif; ?> name="order_status[]" value="<?php echo htmlentities($v['status_id']); ?>">
            <?php endforeach; endif; else: echo "" ;endif; ?>

            开始时间 <input type="date" name="start_time" value="<?php echo htmlentities((isset($start_time) && ($start_time !== '')?$start_time:'')); ?>">
            结束时间 <input type="date" name="end_time"  value="<?php echo htmlentities((isset($end_time) && ($end_time !== '')?$end_time:'')); ?>">

            最低价 <input type="number" name="min_price" value="<?php echo htmlentities((isset($min_price) && ($min_price !== '')?$min_price:'')); ?>">
            最高价 <input type="number" name="max_price" value="<?php echo htmlentities((isset($max_price) && ($max_price !== '')?$max_price:'')); ?>">

          <select name="status" style="padding:5px 15px; border:1px solid #ddd;">
            <option value="">-请选择-</option>
            <?php if(is_array($arr) || $arr instanceof \think\Collection || $arr instanceof \think\Paginator): $i = 0; $__LIST__ = $arr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
            <option value="<?php echo htmlentities($v['status_id']); ?>"><?php echo htmlentities($v['order_status']); ?></option>
            <?php endforeach; endif; else: echo "" ;endif; ?>
          </select>
          </li>

        <li>
          <input type="text" placeholder="请输入搜索关键字" name="keywords" class="input" value="<?php echo htmlentities((isset($keywords) && ($keywords !== '')?$keywords:'')); ?>" style="width:250px; line-height:17px;display:inline-block" />
          <a href="javascript:F.submit();" class="button border-main icon-search" > 搜索</a></li>
      </ul>
      </form>
    </div>
    <table class="table table-hover text-center">
      <tr>
        <th width="100" style="text-align:left; padding-left:20px;">ID</th>
          <th width="10%">订单号</th>
          <th width="10%">用户</th>
        <th width="10%">价格</th>
        <th width="15%">状态</th>
        <th width="20%">下单时间</th>
        <th width="20%">备注</th>
        <th width="310">操作</th>
      </tr>
        <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
        <tr>
          <td style="text-align:left; padding-left:20px;"><input type="checkbox" name="id[]" value="" /><?php echo htmlentities($v['id']); ?></td>
            <td><?php echo htmlentities($v['order_sn']); ?></td>
            <td><?php echo htmlentities($v['uname']); ?></td>
          <td><?php echo htmlentities($v['price']); ?></td>
          <td><font color="#00CC99"><?php echo htmlentities($v['order_status']); ?></font></td>
          <td><?php echo htmlentities(date('Y-m-d H:i:s',!is_numeric($v['addtime'])? strtotime($v['addtime']) : $v['addtime'])); ?></td>
          <td><?php echo htmlentities($v['remark']); ?></td>
          <td><div class="button-group"> <a class="button border-main" href="order_detail.html"><span class="icon-edit"></span> 查看</a> <a class="button border-red" href="javascript:void(0)" onclick="return del(1,1,1)"><span class="icon-trash-o"></span> 删除</a> </div></td>
        </tr>
        <?php endforeach; endif; else: echo "" ;endif; ?>

      <tr>
        <td style="text-align:left; padding:19px 0;padding-left:20px;"><input type="checkbox" id="checkall"/>
          	全选 
        </td>
        <td colspan="7" style="text-align:left;padding-left:20px;">
        	<a href="javascript:void(0)" class="button border-red icon-trash-o" style="padding:5px 15px;" onclick="DelSelect()"> 删除</a> 
        </td>
      </tr>
      <tr>
        <td colspan="8">                <?php echo $list; ?>
        </td>
      </tr>
    </table>
  </div>
<script type="text/javascript">

//搜索
function changesearch(){	
		
}

//单个删除
function del(id,mid,iscid){
	if(confirm("您确定要删除吗?")){
		
	}
}

//全选
$("#checkall").click(function(){ 
  $("input[name='id[]']").each(function(){
	  if (this.checked) {
		  this.checked = false;
	  }
	  else {
		  this.checked = true;
	  }
  });
})

//批量删除
function DelSelect(){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){
		var t=confirm("您确认要删除选中的内容吗？");
		if (t==false) return false;		
		$("#listform").submit();		
	}
	else{
		alert("请选择您要删除的内容!");
		return false;
	}
}

//批量排序
function sorts(){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){	
		
		$("#listform").submit();		
	}
	else{
		alert("请选择要操作的内容!");
		return false;
	}
}


//批量首页显示
function changeishome(o){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){
		
		$("#listform").submit();	
	}
	else{
		alert("请选择要操作的内容!");		
	
		return false;
	}
}

//批量推荐
function changeisvouch(o){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){
		
		
		$("#listform").submit();	
	}
	else{
		alert("请选择要操作的内容!");	
		
		return false;
	}
}

//批量置顶
function changeistop(o){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){		
		
		$("#listform").submit();	
	}
	else{
		alert("请选择要操作的内容!");		
	
		return false;
	}
}


//批量移动
function changecate(o){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){		
		
		$("#listform").submit();		
	}
	else{
		alert("请选择要操作的内容!");
		
		return false;
	}
}

//批量复制
function changecopy(o){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){	
		var i = 0;
	    $("input[name='id[]']").each(function(){
	  		if (this.checked==true) {
				i++;
			}		
	    });
		if(i>1){ 
	    	alert("只能选择一条信息!");
			$(o).find("option:first").prop("selected","selected");
		}else{
		
			$("#listform").submit();		
		}	
	}
	else{
		alert("请选择要复制的内容!");
		$(o).find("option:first").prop("selected","selected");
		return false;
	}
}

</script>
</body>
</html>